﻿using System;

namespace Microsoft.Services.Clab.UI.Mvvmc
{
    [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
    public sealed class ViewFirstInitializationAttribute : Attribute
    {
        private readonly string controllerLogicalName;

        public ViewFirstInitializationAttribute(string controllerLogicalName)
        {
            this.controllerLogicalName = controllerLogicalName;
        }

        public string ControllerLogicalName
        {
            get { return controllerLogicalName; }
        }

        public bool Async { get; set; }
    }
}
